<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="default" />
    <meta name="theme-color" content="#667eea" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <title>英语单词记忆游戏</title>
    <style>
      /* Chrome移动端兼容性修复 */
      html, body {
        height: 100%;
        width: 100%;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
      }
      
      #app {
        min-height: 100vh;
        width: 100%;
      }
      
      /* 防止Chrome移动端白屏 */
      body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        background-attachment: fixed;
      }
      
      /* Chrome移动端滚动优化 */
      * {
        -webkit-overflow-scrolling: touch;
      }
    </style>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.js"></script>
    <script>
      // Chrome移动端兼容性修复
      if (navigator.userAgent.includes('Chrome') && /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
        // 强制重绘
        document.addEventListener('DOMContentLoaded', function() {
          setTimeout(function() {
            document.body.style.display = 'none';
            document.body.offsetHeight;
            document.body.style.display = '';
          }, 100);
        });
        
        // 修复触摸事件
        document.addEventListener('touchstart', function() {}, {passive: true});
        document.addEventListener('touchmove', function() {}, {passive: true});
      }
    </script>
  </body>
</html> 